Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix torch._six.PY3 not found in newer pytorch versions #359

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

guigarfr
Copy link

@guigarfr guigarfr commented Aug 11, 2021

Newer python versions do not have variable torch._six.PY3 [Issue] which is also a module not meant to be imported in a project.

PY3 only checks that python version is 3, and we can do that directly using sys.

@zxr-Cr7
Copy link

zxr-Cr7 commented Aug 15, 2024

请问如何用sys解决?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants